package com.yc.qunxing.service;

import com.yc.qunxing.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.qunxing.result.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 鹏哥
 * @since 2024-05-23
 */
public interface IUsersService extends IService<Users> {


    Result<String> registerUser(Users users);

    void updateRaffleNum(Integer id);

    boolean verifyOriginalPassword(Integer userId, String originalPassword);

    boolean changePassword(Integer userId, String newPassword);

    boolean changePhone(Integer userId, String phone);

    boolean sendVerificationCode(Integer userId, String email, String code);

    boolean changeEmail(Integer userId, String newEmail);

    boolean changeName(Integer userId, String name);

    List<Users> getUserByManager(String keyword, String keywordOrder);
}
